#ifndef MODIFYMEMBERINFORMATION_H
#define MODIFYMEMBERINFORMATION_H
#include "personmember.h"

#include <QWidget>
class InquireSql;

enum LastClickModifyMemberInformation {lineEditMembercardID, lineEditMemberName,
                comboBoxGender, lineEditTel, lineEditEmail, lineEditAdress,
                                       textEditRemark, pushButtonSave};

namespace Ui {
class ModifyMemberInformation;
}

class ModifyMemberInformation : public QWidget
{
    Q_OBJECT
    
public:
    explicit ModifyMemberInformation(QWidget *parent = 0);
    ~ModifyMemberInformation();
    void displayMemberInformation(const QString &);
    bool eventFilter(QObject *target, QEvent *event);

signals:
    void updateMemberProfile();

private slots:
    void on_pushButtonCancel_clicked();

    void on_pushButtonSave_clicked();

private:
    Ui::ModifyMemberInformation *ui;
    InquireSql *m_sql;
    int m_lastClick;
//    PersonMember m_personMember;
};

#endif // MODIFYMEMBERINFORMATION_H
